package Work;

public class Manager extends Employee{
    double basicsalary;
    double monthBonus;

    Manager(String name,int age,double basicsalary,double monthBonus)
    {
        super(name,age);
        this.salary = basicsalary + monthBonus;
        this.basicsalary = basicsalary;
        this.monthBonus = monthBonus;
    }

    @Override
    public void printInfo()
    {
        System.out.println("------经理------");
        super.printInfo();
        System.out.println("基本工资"+this.basicsalary);
        System.out.println("月度奖金"+this.monthBonus);
    }
}
